<form id="ToCashFrom" action="{:sysuri()}" method="post" data-auto="true" class="layui-form layui-card" data-table-id="ToCashFrom">
    <div class="layui-card-body">
        <div class="layui-form-item">
            <label class="layui-form-label">飞手昵称</label>
            <div class="layui-input-block">
                <input name="$vo.nickname" value='{$vo.pilot.nickname|default=""}' placeholder="" class="layui-input">
                <p class="help-block"></p>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">飞手姓名</label>
            <div class="layui-input-block">
                <input name="$vo.realname" value='{$vo.pilot.nickname|default=""}' placeholder="" class="layui-input">
                <p class="help-block"></p>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">持卡人姓名</label>
            <div class="layui-input-block">
                <input name="realname" value='{$vo.realname|default=""}'  placeholder="" class="layui-input">
                <p class="help-block"></p>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">银行名称</label>
            <div class="layui-input-block">
                <input name="bank_name" value='{$vo.bank_name|default=""}'  placeholder="" class="layui-input">
                <p class="help-block"></p>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">支行名称</label>
            <div class="layui-input-block">
                <input name="branch_nane" value='{$vo.branch_nane|default=""}' placeholder="" class="layui-input">
                <p class="help-block"></p>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">银行卡号</label>
            <div class="layui-input-block">
                <input name="card_no" value='{$vo.card_no|default=""}' placeholder="" class="layui-input">
                <p class="help-block"></p>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">提现金额</label>
            <div class="layui-input-block">
                <input name="money" value='{$vo.money|default=""}'  placeholder="" class="layui-input">
                <p class="help-block"></p>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label label-required">审核结果</label>
            <div class="layui-input-block">
                <div class="layui-input border-0" >
                    <input type="radio" name="status" value="1" title="通过" checked>
                    <input type="radio" name="status" value="-1" title="不通过" >
                </div>
                <p class="help-block"></p>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">审核意见</label>
            <div class="layui-input-block">
                <textarea name="review_reason" placeholder="请输入审核意见" class="layui-textarea">{$vo.review_reason|default=""}</textarea>
                <p class="help-block">选填</p>
            </div>
        </div>
    </div>

    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>
</form>

<script>
    // 时间选择器
    layui.use('form', function(){
        var form = layui.form;
        // 选择表单元素
        var formElement = document.getElementById('ToCashFrom');
        var formElements = formElement.querySelectorAll('input, select, textarea, .layui-input');
        // 排除指定元素
        formElements = Array.from(formElements).filter(el => !['id', 'status', 'review_reason'].includes(el.getAttribute('name')));
        // 遍历这些元素并禁用它们
        formElements.forEach(function(el) {
            el.disabled = true;
            el.classList.add('layui-disabled');
        });
        // 如果需要动态更新Layui样式，可以重新渲染表单
        form.render();
    });
</script>